# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=tree-sitter-git-diff
pkgver=0_git20230730
_gitrev=c165725c28e69b36c5799ff0e458713a844f1aaf
pkgrel=0
pkgdesc="Tree-sitter grammar for 'git diff' output"
url="https://github.com/the-mikedavis/tree-sitter-diff"
arch="all"
license="MIT"
makedepends="tree-sitter-dev"
install_if="tree-sitter-grammars"
source="https://github.com/the-mikedavis/tree-sitter-diff/archive/$_gitrev/tree-sitter-git-diff-$_gitrev.tar.gz"
builddir="$srcdir/tree-sitter-diff-$_gitrev"
options="!check"  # no tests for shared lib

build() {
	abuild-tree-sitter build
}

package() {
	DESTDIR="$pkgdir" abuild-tree-sitter install
}

sha512sums="
d8cb76b412f7ebd781a74c0a7857c859d634d11d89b0ce4b94c6066f97c027ef45caa946e209442efe67e3b219629b267870ffd2b3a4dc83cd4e98e2aecd7500  tree-sitter-git-diff-c165725c28e69b36c5799ff0e458713a844f1aaf.tar.gz
"
